package com.lz.androidlibraries.fragment;

import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.liuyk.commonlib.fragment.BaseSwipeRefreshWithLoadingFragment;
import com.lz.androidlibraries.R;
import com.lz.ui_lib.UiMainActivity;

/**
 * DESC
 * <p>
 * Created by liuyakui on 2020/5/31.
 */
public class OtherFragment extends BaseSwipeRefreshWithLoadingFragment<String> {

    @Override
    protected View getContentView(LayoutInflater inflater, ViewGroup container) {
        View view = super.getContentView(inflater, container);
        setSwipeRefreshLoadingContent(R.layout.fragment_other);
        return view;
    }

    @Override
    protected String filterDuplicatedCondition(String s) {
        return s;
    }

    @Override
    protected void onRetry() {

    }

    @Override
    protected void createView() {
        showContentState();
        findViewById(R.id.common_ui).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(getContext(), UiMainActivity.class));
            }
        });
    }
}
